package com.weimob.xh.provider.controller;

import com.weimob.xh.provider.service.RabbitMQService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: xh-learn-record
 * @description:
 * @author: sch
 * @create: 2022-12-14 00:17
 **/
@RestController
@RequestMapping("rabbitmq")
public class RabbitmqController {
    @Autowired
    private RabbitMQService rabbitMQService;

    @RequestMapping("test")
    public String test() {
        return "hello rabbitmq";
    }

    @RequestMapping("send1")
    public String sendTest1(String str) {
        return rabbitMQService.sendMsg(str);
    }
}
